const { defineConfig } = require('@vue/cli-service')
// const webpack = require("webpack");
module.exports = defineConfig({
  lintOnSave: false,
  transpileDependencies: true,
  devServer: {
    // 自动打开浏览器
    open: true,
    port: 8080,
    proxy: {
      '/api': {
        target: `http://localhost:8081/`,
        changeOrigin: true,//开启代理
        pathRewrite: {
          '^/api': ''
        }
      }
    },
    client: {
      overlay: false,
    }
  }
})

